package com.jmp.service.api.admin;

import com.jmp.service.api.admin.dto.AppIndexGoodsRemoveRequest;
import com.jmp.service.api.admin.dto.AppIndexGoodsRequest;
import com.jmp.service.api.admin.dto.AppIndexGoodsResponse;
import com.jmp.service.api.admin.dto.AppIndexGoodsSaveRequest;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * APP首页配置-商品
 *
 * @author cjr
 */
public interface AppIndexGoodsApi {

    int TYPE_INDEX = 0;
    int TYPE_CATEGORY = 1;

    @PostMapping("admin/app/index/goods/list")
    ResultModel<AppIndexGoodsResponse> list(@RequestBody AppIndexGoodsRequest request);

    @PostMapping("admin/app/index/goods/save")
    ResultModel appIndexGoodsSave(@RequestBody AppIndexGoodsSaveRequest request);

    @PostMapping("admin/app/index/goods/remove")
    ResultModel appIndexGoodsRemove(@RequestBody AppIndexGoodsRemoveRequest request);

}
